import request from "@/utils/request";

/**
 * 获取用户
 * @param {*} params
 * @returns
 */
export function getList(params) {
  return request({
    url: "/vue-admin-template/user/list",
    method: "get",
    params,
  });
}

/**
 * 更新用户
 * @param {*} user
 * @returns
 */
export function updateUser(user) {
  return request({
    url: "/vue-admin-template/user/update",
    method: "post",
    data: user,
  });
}

/**
 * 删除用户
 * @param {*} user
 * @returns
 */
export function deleteUser(param) {
  return request({
    url: "/vue-admin-template/user/delete",
    method: "post",
    data: param,
  });
}
